<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

include '../../../../readcookie.php';
include '../../../../db.php';
$id=$_POST['id'];
$name=mysql_real_escape_string($_POST['name']);

$publish=$_POST['publish'];
if($publish==NULL){ $publish='false'; }else{ $publish='true'; }


//echo $publish;

$header=mysql_real_escape_string($_POST['header']);
$footer=mysql_real_escape_string($_POST['footer']);


$query="UPDATE Tag SET
tagNAME = '$name',
tagFOOTER = '$footer',
tagHEADER = '$header'
WHERE
tagID = '$id'";
mysql_query($query) or die('Error, insert query failed');
echo '
<script type="text/javascript">
window.location.href = document.referrer;
</script>
';

?>